<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Fabrikam.Client.Controls">

    <Style TargetType="local:WaiterControl">
        <Setter Property="Template">
            <Setter.Value>
                
                <ControlTemplate TargetType="local:WaiterControl">
                    <Grid >
                        <Border
                            Opacity="0.4"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        </Border>
                        <StackPanel Opacity="1">
                            <ProgressBar Name="pgBar" Height="20" Opacity="1" Margin="0,10,0,0" 
                             IsIndeterminate="True" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                            
                            <TextBlock Opacity="1" Text="Sync in progress... Please wait." HorizontalAlignment="Center" 
                           Style="{StaticResource SubtitleTextBlockStyle}"  />
                        </StackPanel>
                    </Grid>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
